from public.action import *
from public.business import *
from public.testData import *
from public.tools import *
import time

testCase = "DBshop007-查看发货单流程"

# 1.进入后台销售管理发货单页面
firefox=openBrowser(url)
firefox.get(urlAdmin)
DBshopLoginAdmin(firefox)
DBshopEnterMenu2(firefox,'销售管理','发货单')
time.sleep(3)

try:
    firefox.find_element_by_xpath("//td[text()='已发货'or text()='未发货']")
    writeLog("%s 测试通过"%testCase)
except:
    writeLog("%s 测试失败" % testCase)
    getPhoto(firefox)
firefox.quit()